<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#example-navbar-collapse">
            <span class="sr-only">切换导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        
        <a class="navbar-brand" href="#">菜鸟教程</a>
    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">iOS</a></li>
            <li><a href="#">SVN</a></li>
            
        </ul>
        {%if islogin%}
        <ul class="nav navbar-nav navbar-right"> 
            <li><a href="/register"><span class="glyphicon glyphicon-log-out"></span><span class="glyphicon glyphicon-user"></span> 注销</a></li> 
        </ul> 
        {%else%}
        <ul class="nav navbar-nav navbar-right"> 
            <li><a href="/register"><span class="glyphicon glyphicon-user"></span> 注册</a></li> 
            <li><a href="/login"><span class="glyphicon glyphicon-user"></span> 登录</a></li> 
        </ul> 
        {%endif%}
        
    </div>
    </div>
</nav>
    
{%block content%}
{%endblock%}



    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>